<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="utf-8">
        <title>Benefit+ | <?php echo $page_title; ?></title>
        <meta name="renderer" content="webkit|ie-comp|ie-stand">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link href="/static/css/bootstrap.min.css" rel="stylesheet">
        <link href="/static/font-awesome/css/font-awesome.css" rel="stylesheet">
        <link href="/static/css/animate.css" rel="stylesheet">
        <link href="/static/css/style.css" rel="stylesheet">
    </head>
    <body class="gray-bg">
        <div class="website-skin" style="background-image:url(/static/img/skin/<?php echo $bgimg_num; ?>.jpg);"></div>
        <div class="wrapper wrapper-content">
            <div class="middle-box text-center loginscreen animated fadeInDown">
                <div>
                    <p class="logo-name">Benefit+</p>
                    <div>
                        <p>Create account to see it in action.</p>
                        <?php echo form_open('/welcome/regist', array('class' => 'm-t', 'role' => 'form')); ?>
                        <div class="form-group">
                            <input type="text" class="form-control" name="account" placeholder="请输入5~12位用户名" value="<?php echo set_value('account'); ?>" required="">
                            <?php if (form_error('account')) echo '<span class="text-danger pull-left">请输入5~12位用户名</span>'; ?>
                        </div>
                        <div class="form-group">
                            <input type="password" class="form-control" name="password" placeholder="请输入8位及以上密码" value="<?php echo set_value('password'); ?>" required="">
                            <?php if (form_error('password')) echo '<span class="text-danger pull-left">请输入8位及以上密码</span>'; ?>
                        </div>
                        <div class="form-group">
                            <input type="password" class="form-control" name="passconf" placeholder="请确认密码" value="<?php echo set_value('passconf'); ?>" required="">
                            <?php if (form_error('passconf')) echo '<span class="text-danger pull-left">两次密码输入不一致</span>'; ?>
                        </div>
                        <div class="form-group">
                            <div class="checkbox i-checks">
                                <label> <input type="checkbox" name="agree" value="1" checked><i></i> 已同意博讯尚品Benefit+用户协议 </label>
                                <?php if (form_error('agree')) echo '<span class="text-danger pull-left">还未同意用户协议</span>'; ?>
                            </div>
                        </div>
                        <button type="submit" class="btn btn-primary block full-width m-b">注册</button>
                        <p class="text-muted text-center"><small>已有账号?</small></p>
                        <a class="btn btn-sm btn-white btn-block" href="/welcome/login">登录</a>
                        <?php echo form_close(); ?>
                        <p class="m-t"> <small>Benefit+ &copy; 博讯商品 2016</small> </p>
                    </div>
                </div>
            </div>
        </div>


        <!-- Mainly scripts -->
        <script src="/static/js/jquery-2.1.1.js"></script>
        <script src="/static/js/bootstrap.min.js"></script>

    </body>
</html>
